package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户收藏表
 * @TableName user_collection
 */
@TableName(value ="user_collection")
@Data
public class UserCollection implements Serializable {
    /**
     * 收藏ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 收藏类型
     */
    private Object entityType;

    /**
     * 对象ID
     */
    private Long entityId;

    /**
     * 收藏时间
     */
    private Date collectTime;
    @TableField(exist = false)
    private Product product;
    @TableField(exist = false)
    private Content content;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}